﻿using System;
using housingsafety.server.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata;
using SixLabors.ImageSharp;
using static housingsafety.server.Controllers.HouseMngCheckOutController;
using static housingsafety.server.Controllers.HouseMngSqjzHouseController;
using static housingsafety.server.Models.HelperModel;

namespace housingsafety.server.Entities.DataModels
{
    public partial class BaseDbContext : DbContext
    {
        public BaseDbContext()
        {
        }

        public BaseDbContext(DbContextOptions<BaseDbContext> options)
            : base(options)
        {
        }

        public virtual DbSet<RiskCensusHouseYhpc> RiskCensusHouseYhpc { get; set; }
        public virtual DbSet<RiskCensusYhpcUpldFile> RiskCensusYhpcUpldFileTest { get; set; }
        public virtual DbSet<ZmSampleCheck> ZmSampleCheck { get; set; }
        public virtual DbSet<ZmSurveyUnit> ZmSurveyUnit { get; set; }
        public virtual DbSet<ZmTask> ZmTask { get; set; }
        public virtual DbSet<ZmTaskSample> ZmTaskSample { get; set; }
        public virtual DbSet<ZmCityTask> ZmCityTask { get; set; }
        //public virtual DbSet<ZmCityTaskFzz> ZmCityTaskFzz { get; set; }
        public virtual DbSet<ZmCityTaskSample> ZmCityTaskSample { get; set; }
        public virtual DbSet<ZmCitySampleCheck> ZmCitySampleCheck { get; set; }

        public virtual DbSet<ZmYtPhoto> ZmYtPhoto { get; set; }
        public virtual DbSet<ZmCitySampleCheckFzz> ZmCitySampleCheckFzz { get; set; }
        public virtual DbSet<ZmBuildings> ZmBuildings { get; set; }
        public virtual DbSet<ZmPcYhLogCjDto> ZmPcYhLogCjDto { get; set; }
        
        public virtual DbSet<ZmBuildingsLayer> ZmBuildingsLayer { get; set; }
        public virtual DbSet<ZmDepartment> ZmDepartment { get; set; }

        public virtual DbSet<ZmBuildingLedgerDto> ZmBuildingLedgerDto { get; set; }
        public virtual DbSet<ZmFileAttach> ZmFileAttach { get; set; }
        public virtual DbSet<ZmLoginLog> ZmLoginLog { get; set; }
        public virtual DbSet<ZmPlaceCommercial> ZmPlaceCommercial { get; set; }
        public virtual DbSet<ZmPlaceCommercialCheck> ZmPlaceCommercialCheck { get; set; }

        public virtual DbSet<ZmPlaceCommercialCheckLog> ZmPlaceCommercialCheckLog { get; set; }
        public virtual DbSet<ZmPlaceResident> ZmPlaceResident { get; set; }
        public virtual DbSet<ZmPlaceResidentCheck> ZmPlaceResidentCheck { get; set; }
        public virtual DbSet<ZmPlaceResidentCheckLog> ZmPlaceResidentCheckLog { get; set; }
        public virtual DbSet<ZmSystemConfig> ZmSystemConfig { get; set; }
        public virtual DbSet<ZmSystemLog> ZmSystemLog { get; set; }
        public virtual DbSet<ZmUser> ZmUser { get; set; }



        public virtual DbSet<ZmPcYhLogSqjz> ZmPcYhLogSqjz { get; set; }
        public virtual DbSet<ZmPcBaseLog> ZmPcBaseLog { get; set; }
        public virtual DbSet<ZmPcYhLog> ZmPcYhLog { get; set; }

        public virtual DbSet<ZmPcBaseLogSqjz> ZmPcBaseLogSqjz { get; set; }
        public virtual DbSet<ZmPcYhLogCj> ZmPcYhLogCj { get; set; }
        public virtual DbSet<ZmPcBaseLogCj> ZmPcBaseLogCj { get; set; }
        
        public virtual DbSet<UserDtojb> UserDtojb { get; set; }
        public virtual DbSet<ZmUserToken> ZmUserToken { get; set; }
        public virtual DbSet<ZmVillageFireSafety> ZmVillageFireSafety { get; set; }
        public virtual DbSet<FwlbDto> FwlbDto { get; set; }
        public virtual DbSet<ZmSql> ZmSql { get; set; }
        public virtual DbSet<ZmVillageFireSafetyDto> ZmVillageFireSafetyDto { get; set; }
        public virtual DbSet<ZmVillageFireSafetyYJ> ZmVillageFireSafetyYJ { get; set; }
        public virtual DbSet<ZmVillageFireSafetyCheck> ZmVillageFireSafetyCheck { get; set; }
        public virtual DbSet<ZmYtFrom> ZmYtFrom { get; set; }

        public virtual DbSet<ZmYtBuild> ZmYtBuild { get; set; }
        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            if (!optionsBuilder.IsConfigured)
            {
            }
        }

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {

            modelBuilder.Entity<ZmPcYhLogCjDto>().HasNoKey();
            modelBuilder.HasPostgresExtension("postgis");

            modelBuilder.Entity<RiskCensusHouseYhpc>(entity =>
            {
                entity.Property(e => e.CreateBy).HasComment("创建者");

                entity.Property(e => e.CreateIp).HasComment("创建时的IP");

                entity.Property(e => e.CreateOn).HasComment("创建时间");

                entity.Property(e => e.DeleteBy).HasComment("删除者");

                entity.Property(e => e.DeleteIp).HasComment("删除时的IP");

                entity.Property(e => e.DeleteOn).HasComment("删除时间");

                entity.Property(e => e.IsDelete).HasComment("是否删除");

                entity.Property(e => e.ModifiedBy).HasComment("修改者");

                entity.Property(e => e.ModifiedIp).HasComment("修改时的IP");

                entity.Property(e => e.ModifiedOn).HasComment("修改时间");
            });

            modelBuilder.Entity<RiskCensusYhpcUpldFile>(entity =>
            {
                entity.Property(e => e.CreateBy).HasComment("创建者");

                entity.Property(e => e.CreateIp).HasComment("创建时的IP");

                entity.Property(e => e.CreateOn).HasComment("创建时间");

                entity.Property(e => e.DeleteBy).HasComment("删除者");

                entity.Property(e => e.DeleteIp).HasComment("删除时的IP");

                entity.Property(e => e.DeleteOn).HasComment("删除时间");

                entity.Property(e => e.IsDelete).HasComment("是否删除");

                entity.Property(e => e.ModifiedBy).HasComment("修改者");

                entity.Property(e => e.ModifiedIp).HasComment("修改时的IP");

                entity.Property(e => e.ModifiedOn).HasComment("修改时间");
            });

            modelBuilder.Entity<ZmSampleCheck>(entity =>
            {
                entity.Property(e => e.Id).HasComment("id");

                entity.Property(e => e.CreateBy).HasComment("创建者");

                entity.Property(e => e.CreateIp).HasComment("创建时的IP");

                entity.Property(e => e.CreateOn).HasComment("创建时间");

                entity.Property(e => e.DeleteBy).HasComment("删除者");

                entity.Property(e => e.DeleteIp).HasComment("删除时的IP");

                entity.Property(e => e.DeleteOn).HasComment("删除时间");

                entity.Property(e => e.HouseId).HasComment("房屋id");

                entity.Property(e => e.IsDelete).HasComment("是否删除");

                entity.Property(e => e.ModifiedBy).HasComment("修改者");

                entity.Property(e => e.ModifiedIp).HasComment("修改时的IP");

                entity.Property(e => e.ModifiedOn).HasComment("修改时间");

                entity.Property(e => e.Note).HasComment("备注");

                entity.Property(e => e.Photos).HasComment("照片");

                entity.Property(e => e.Result).HasComment("核查结果");
            });

            modelBuilder.Entity<ZmCitySampleCheck>(entity =>
            {
                entity.Property(e => e.Id).HasComment("id");

                entity.Property(e => e.CreateBy).HasComment("创建者");

                entity.Property(e => e.CreateIp).HasComment("创建时的IP");

                entity.Property(e => e.CreateOn).HasComment("创建时间");

                entity.Property(e => e.DeleteBy).HasComment("删除者");

                entity.Property(e => e.DeleteIp).HasComment("删除时的IP");

                entity.Property(e => e.DeleteOn).HasComment("删除时间");

                entity.Property(e => e.HouseId).HasComment("房屋id");

                entity.Property(e => e.IsDelete).HasComment("是否删除");

                entity.Property(e => e.ModifiedBy).HasComment("修改者");

                entity.Property(e => e.ModifiedIp).HasComment("修改时的IP");

                entity.Property(e => e.ModifiedOn).HasComment("修改时间");

                entity.Property(e => e.Note).HasComment("备注");

                entity.Property(e => e.Photos).HasComment("照片");

                entity.Property(e => e.Result).HasComment("核查结果");
            });

            modelBuilder.Entity<ZmSurveyUnit>(entity =>
            {
                entity.Property(e => e.Id).HasComment("id");

                entity.Property(e => e.CreateBy).HasComment("创建者");

                entity.Property(e => e.CreateIp).HasComment("创建时的IP");

                entity.Property(e => e.CreateOn).HasComment("创建时间");

                entity.Property(e => e.DeleteBy).HasComment("删除者");

                entity.Property(e => e.DeleteIp).HasComment("删除时的IP");

                entity.Property(e => e.DeleteOn).HasComment("删除时间");

                entity.Property(e => e.IsDelete).HasComment("是否删除");

                entity.Property(e => e.ModifiedBy).HasComment("修改者");

                entity.Property(e => e.ModifiedIp).HasComment("修改时的IP");

                entity.Property(e => e.ModifiedOn).HasComment("修改时间");

                entity.Property(e => e.Name).HasComment("单位名称");
            });

            modelBuilder.Entity<ZmTask>(entity =>
            {
                entity.Property(e => e.Id).HasComment("id");

                entity.Property(e => e.CreateBy).HasComment("创建者");

                entity.Property(e => e.CreateIp).HasComment("创建时的IP");

                entity.Property(e => e.CreateOn).HasComment("创建时间");

                entity.Property(e => e.DeleteBy).HasComment("删除者");

                entity.Property(e => e.DeleteIp).HasComment("删除时的IP");

                entity.Property(e => e.DeleteOn).HasComment("删除时间");

                entity.Property(e => e.IsDelete).HasComment("是否删除");

                entity.Property(e => e.ModifiedBy).HasComment("修改者");

                entity.Property(e => e.ModifiedIp).HasComment("修改时的IP");

                entity.Property(e => e.ModifiedOn).HasComment("修改时间");

                entity.Property(e => e.Name).HasComment("任务名称");

                entity.Property(e => e.SampleAreaCode).HasComment("样本区域编码");

                entity.Property(e => e.SampleAreaCodesJson).HasComment("样本区域编码Json");

                entity.Property(e => e.SampleProportion).HasComment("样本比例");

                entity.Property(e => e.SampleType).HasComment("样本类型(严重安全隐患、存在一般隐患、无隐患)");

                entity.Property(e => e.SampleCount).HasComment("抽取的样本数量");

                entity.Property(e => e.SurveyUnitId).HasComment("调查单位id");
            });

            modelBuilder.Entity<ZmTaskSample>(entity =>
            {
                entity.Property(e => e.Id).HasComment("id");

                entity.Property(e => e.CreateBy).HasComment("创建者");

                entity.Property(e => e.CreateIp).HasComment("创建时的IP");

                entity.Property(e => e.CreateOn).HasComment("创建时间");

                entity.Property(e => e.DeleteBy).HasComment("删除者");

                entity.Property(e => e.DeleteIp).HasComment("删除时的IP");

                entity.Property(e => e.DeleteOn).HasComment("删除时间");

                entity.Property(e => e.HouseId).HasComment("房屋ID");

                entity.Property(e => e.IsDelete).HasComment("是否删除");

                entity.Property(e => e.ModifiedBy).HasComment("修改者");

                entity.Property(e => e.ModifiedIp).HasComment("修改时的IP");

                entity.Property(e => e.ModifiedOn).HasComment("修改时间");

                entity.Property(e => e.TaskId).HasComment("任务ID");
            });

            modelBuilder.Entity<ZmCityTask>(entity =>
            {
                entity.Property(e => e.Id).HasComment("id");

                entity.Property(e => e.CreateBy).HasComment("创建者");

                entity.Property(e => e.CreateIp).HasComment("创建时的IP");

                entity.Property(e => e.CreateOn).HasComment("创建时间");

                entity.Property(e => e.DeleteBy).HasComment("删除者");

                entity.Property(e => e.DeleteIp).HasComment("删除时的IP");

                entity.Property(e => e.DeleteOn).HasComment("删除时间");

                entity.Property(e => e.IsDelete).HasComment("是否删除");

                entity.Property(e => e.ModifiedBy).HasComment("修改者");

                entity.Property(e => e.ModifiedIp).HasComment("修改时的IP");

                entity.Property(e => e.ModifiedOn).HasComment("修改时间");

                entity.Property(e => e.Name).HasComment("任务名称");

                entity.Property(e => e.SampleAreaCode).HasComment("样本区域编码");

                entity.Property(e => e.SampleAreaCodesJson).HasComment("样本区域编码Json");

                entity.Property(e => e.SampleProportion).HasComment("样本比例");

                entity.Property(e => e.SampleType).HasComment("样本类型(严重安全隐患、存在一般隐患、无隐患)");

                entity.Property(e => e.SampleCount).HasComment("抽取的样本数量");

                entity.Property(e => e.SurveyUnitId).HasComment("调查单位id");

                entity.Property(e => e.HcAcuracy).HasComment("核查正确率");

                entity.Property(e => e.HcAcuracycount).HasComment("核查正确数量");
            });

            modelBuilder.Entity<ZmCityTaskSample>(entity =>
            {
                entity.Property(e => e.Id).HasComment("id");

                entity.Property(e => e.CreateBy).HasComment("创建者");

                entity.Property(e => e.CreateIp).HasComment("创建时的IP");

                entity.Property(e => e.CreateOn).HasComment("创建时间");

                entity.Property(e => e.DeleteBy).HasComment("删除者");

                entity.Property(e => e.DeleteIp).HasComment("删除时的IP");

                entity.Property(e => e.DeleteOn).HasComment("删除时间");

                entity.Property(e => e.HouseId).HasComment("房屋ID");

                entity.Property(e => e.IsDelete).HasComment("是否删除");

                entity.Property(e => e.ModifiedBy).HasComment("修改者");

                entity.Property(e => e.ModifiedIp).HasComment("修改时的IP");

                entity.Property(e => e.ModifiedOn).HasComment("修改时间");

                entity.Property(e => e.TaskId).HasComment("任务ID");
            });

            modelBuilder.Entity<ZmBuildings>(entity =>
            {
                //entity.HasIndex(e => e.Geom)
                //    .HasName("sidx_zm_buildings_geom")
                //    .HasMethod("gist");

                //entity.Property(e => e.CreateBy).HasComment("创建者");

                //entity.Property(e => e.CreateIp).HasComment("创建时的IP");

                //entity.Property(e => e.CreateOn).HasComment("创建时间");

                //entity.Property(e => e.DeleteBy).HasComment("删除者");

                //entity.Property(e => e.DeleteIp).HasComment("删除时的IP");

                //entity.Property(e => e.DeleteOn).HasComment("删除时间");

                //entity.Property(e => e.Hzxm).HasComment("户主姓名");

                //entity.Property(e => e.Level).HasComment("级别");

                //entity.Property(e => e.Check107).HasComment("是否属于107个重点村");

                //entity.Property(e => e.IsDelete).HasComment("是否删除");

                //entity.Property(e => e.ModifiedBy).HasComment("修改者");

                //entity.Property(e => e.ModifiedIp).HasComment("修改时的IP");

                //entity.Property(e => e.ModifiedOn).HasComment("修改时间");
            });

            modelBuilder.Entity<ZmBuildingsLayer>(entity =>
            {
                entity.HasIndex(e => e.Geom)
                    .HasName("sidx_zm_buildings_geom")
                    .HasMethod("gist");

                entity.Property(e => e.CreateBy).HasComment("创建者");

                entity.Property(e => e.CreateIp).HasComment("创建时的IP");

                entity.Property(e => e.CreateOn).HasComment("创建时间");

                entity.Property(e => e.DeleteBy).HasComment("删除者");

                entity.Property(e => e.DeleteIp).HasComment("删除时的IP");

                entity.Property(e => e.DeleteOn).HasComment("删除时间");

                entity.Property(e => e.Hzxm).HasComment("户主姓名");

                entity.Property(e => e.Level).HasComment("级别");

                entity.Property(e => e.IsDelete).HasComment("是否删除");

                entity.Property(e => e.ModifiedBy).HasComment("修改者");

                entity.Property(e => e.ModifiedIp).HasComment("修改时的IP");

                entity.Property(e => e.ModifiedOn).HasComment("修改时间");

                entity.Property(e => e.PcztFire).HasComment("消防房屋状态((0-未排查,1排查中,2已排查,3不需要排查,4普查房屋)");

                entity.Property(e => e.PcztHousing).HasComment("住建房屋状态((0-未排查,1排查中,2已排查,3不需要排查,4普查房屋)");

                entity.Property(e => e.PcztPolice).HasComment("公安房屋状态((0-未排查,1排查中,2已排查,3不需要排查,4普查房屋)");
            });

            modelBuilder.Entity<ZmDepartment>(entity =>
            {
                entity.Property(e => e.CreateIp).HasComment("创建时的IP");

                entity.Property(e => e.CreateOn).HasComment("创建时间");

                entity.Property(e => e.DeleteBy).HasComment("删除者");

                entity.Property(e => e.DeleteIp).HasComment("删除时的IP");

                entity.Property(e => e.Check107).HasComment("1=Y| 0=N");

                entity.Property(e => e.DeleteOn).HasComment("删除时间");

                entity.Property(e => e.IsDelete).HasComment("是否删除");

                entity.Property(e => e.ModifiedBy).HasComment("修改者");

                entity.Property(e => e.ModifiedIp).HasComment("修改时的IP");

                entity.Property(e => e.ModifiedOn).HasComment("修改时间");
            });

            modelBuilder.Entity<ZmFileAttach>(entity =>
            {
                entity.HasComment("文件附表");

                entity.Property(e => e.Id).HasComment("ID");

                entity.Property(e => e.ContentLength).HasComment("大小");

                entity.Property(e => e.ContentName).HasComment("名称");

                entity.Property(e => e.ContentType).HasComment("类型");

                entity.Property(e => e.CreateBy).HasComment("创建者");

                entity.Property(e => e.CreateIp).HasComment("创建时的IP");

                entity.Property(e => e.CreateOn).HasComment("创建时间");

                entity.Property(e => e.DeleteBy).HasComment("删除者");

                entity.Property(e => e.DeleteIp).HasComment("删除时的IP");

                entity.Property(e => e.DeleteOn).HasComment("删除时间");

                entity.Property(e => e.IsDelete).HasComment("是否删除");

                entity.Property(e => e.ModifiedBy).HasComment("修改者");

                entity.Property(e => e.ModifiedIp).HasComment("修改时的IP");

                entity.Property(e => e.ModifiedOn).HasComment("修改时间");

                entity.Property(e => e.ValueText)
                    .HasDefaultValueSql("0")
                    .HasComment("值");
            });

            modelBuilder.Entity<ZmLoginLog>(entity =>
            {
                entity.HasComment("登录记录");

                entity.Property(e => e.Id).HasComment("id");

                entity.Property(e => e.CreateBy).HasComment("登录者");

                entity.Property(e => e.CreateIp).HasComment("登录时的IP");

                entity.Property(e => e.CreateOn).HasComment("登录时间");

                entity.Property(e => e.DeleteBy).HasComment("删除者");

                entity.Property(e => e.DeleteIp).HasComment("删除ip");

                entity.Property(e => e.DeleteOn).HasComment("删除时间");

                entity.Property(e => e.Descr).HasComment("描述");

                entity.Property(e => e.IsDelete).HasComment("是否删除");

                entity.Property(e => e.ModifiedBy).HasComment("修改者");

                entity.Property(e => e.ModifiedIp).HasComment("修改时IP");

                entity.Property(e => e.ModifiedOn).HasComment("修改时间");
            });

            modelBuilder.Entity<ZmPlaceCommercial>(entity =>
            {
                entity.HasComment("场所-商业信息表");

                entity.Property(e => e.Id).HasComment("场所ID");

                entity.Property(e => e.AboveThreeFloorSelf).HasComment("3层及3层以上建筑是否仅房主自住使用");

                entity.Property(e => e.AboveThreeFloorSelfPhoto).HasComment("3层及3层以上建筑是否仅房主自住使用");

                entity.Property(e => e.ActualPerson).HasComment("实际负责人");

                entity.Property(e => e.ActualPersonPhone).HasComment("实际负责人联系电话");

                entity.Property(e => e.AreaAdminAudit).HasComment("区县管理员审核是否通过");

                entity.Property(e => e.AreaAdminAuditMind).HasComment("区县管理员审核意见");

                entity.Property(e => e.BuildingAddress).HasComment("建筑物地址");

                entity.Property(e => e.BusinessArea).HasComment("经营面积");

                entity.Property(e => e.ChongDianVillage).HasComment("是否属于107个重点村(系统自动读取)");

                entity.Property(e => e.CityAdminAudit).HasComment("市级管理员审核是否通过");

                entity.Property(e => e.CityAdminAuditMind).HasComment("市级管理员审核意见");

                entity.Property(e => e.CommunityAdminAudit).HasComment("社区村级管理员审核是否通过");

                entity.Property(e => e.Contact).HasComment("联系方式");

                entity.Property(e => e.CreateBy).HasComment("创建者");

                entity.Property(e => e.CreateIp).HasComment("创建时的IP");

                entity.Property(e => e.CreateOn).HasComment("创建时间");

                entity.Property(e => e.DeleteBy).HasComment("删除者");

                entity.Property(e => e.DeleteIp).HasComment("删除时的IP");

                entity.Property(e => e.DeleteOn).HasComment("删除时间");

                entity.Property(e => e.EscapeStairsNum).HasComment("建筑现有疏散楼梯的数量（个）");

                entity.Property(e => e.FireInspectorSign).HasComment("消防安全排查员签字");

                entity.Property(e => e.FireSaferSign).HasComment("消防安全责任人签字");

                entity.Property(e => e.FireServiceDamaged).HasComment("建筑消防设施严重损坏");

                entity.Property(e => e.FireServiceDamagedPhoto).HasComment("照片");

                entity.Property(e => e.FirstExitNum).HasComment("建筑首层现有安全出口的数量（个）");

                entity.Property(e => e.FirstFloorArea).HasComment("建筑首层面积（平方米）");

                entity.Property(e => e.HouseId).HasComment("房屋ID");

                entity.Property(e => e.Householder).HasComment("户主姓名");

                entity.Property(e => e.IllegalConstruction).HasComment("违法建设隐患问题(2022年以来新增违法建设)");

                entity.Property(e => e.IllegalConstructionRemediation).HasComment("违法建设隐患问题整治措施(督促整改；关停查封；强制拆违)");

                entity.Property(e => e.IntegrationInspectorSign).HasComment("综合排查员签字");

                entity.Property(e => e.InvadeOccupyStreet).HasComment("侵街站道问题(2022年以来新增侵街占道违法设施)");

                entity.Property(e => e.InvadeOccupyStreetRemediation).HasComment("侵街站道问题整治措施(督促整改;处罚打击;强制拆违)");

                entity.Property(e => e.IsCompletelyIsolated).HasComment("居住区域与生产、经营、存储区域未使用实体砖墙、防火门等进行完全分隔，同时居住区域未设置直通室外的独立疏散楼梯、安全出口");

                entity.Property(e => e.IsCompletelyIsolatedPhoto).HasComment("照片");

                entity.Property(e => e.IsDelete).HasComment("是否删除");

                entity.Property(e => e.Level).HasComment("级别");

                entity.Property(e => e.Location).HasComment("场所位置");

                entity.Property(e => e.CheckMind).HasComment("核查意见");

                entity.Property(e => e.CheckPhoto).HasComment("核查照片");

                entity.Property(e => e.MerchantName).HasComment("场所（商户）名称");

                entity.Property(e => e.ModifiedBy).HasComment("修改者");

                entity.Property(e => e.ModifiedIp).HasComment("修改时的IP");

                entity.Property(e => e.ModifiedOn).HasComment("修改时间");

                entity.Property(e => e.NoLicense).HasComment("无证无照经营问题(存在无照经营场所;危害公共安全、破坏资源环境、滋扰群众生活;存在生产居住仓储一体等“多合一”问题)");

                entity.Property(e => e.NoLicenseRemediation).HasComment("无证无照经营问题整治措施(关停查封;处罚打击)");

                entity.Property(e => e.NotEnoughExits).HasComment("疏散通道或安全出口数量不足或严重堵塞");

                entity.Property(e => e.NotEnoughExitsPhoto).HasComment("照片");

                entity.Property(e => e.Pczt).HasComment("未排查,排查中,已排查有隐患,已排查无隐患");

                entity.Property(e => e.PlaceName).HasComment("场所名称（房屋地址）");

                entity.Property(e => e.SafeProduction).HasComment("安全生产隐患问题(不具备安全生产条件场所；危害公共安全、破坏资源环境、滋扰群众生活；存在生产仓储居住一体等“多合一”问题)");

                entity.Property(e => e.SafeProductionRemediation).HasComment("安全生产隐患问题整治措施(关停查封；处罚打击)");

                entity.Property(e => e.Security).HasComment("治安问题隐患(无照经营旅馆等特种行业；门窗缺少防盗锁具；缺少必要的监控设施；现存违法犯罪窝点；违法滋事风险人员居住)");

                entity.Property(e => e.SecurityRemediation).HasComment("治安隐患问题整治措施(督促整改；关停取缔；处罚打击)");

                entity.Property(e => e.SimpleSprinklerSystemNum).HasComment("建筑设有简易喷淋灭火系统数（套）");

                entity.Property(e => e.SmokeAlarmNum).HasComment("建筑设置联网型独立感烟报警器数（个）");

                entity.Property(e => e.SpecificPurpose).HasComment(@"具体用途包含（可多选）

□餐饮饭店 □民宿宾馆 □批发零售 □休闲娱乐 □教育培训 □医疗卫生 □养老服务 □生产加工 □仓储物流 □宗教场所□商务办公 □农贸市场 □其他（需备注）");

                entity.Property(e => e.StreetAdminAudit).HasComment("街道管理员审核是否通过");

                entity.Property(e => e.StreetAdminAuditMind).HasComment("街道管理员审核意见");

                entity.Property(e => e.ThreatenSafetyFireHazards).HasComment("其他可能严重威胁公共安全的火灾隐患");

                entity.Property(e => e.ThreatenSafetyFireHazardsPhoto).HasComment("照片");

                entity.Property(e => e.Type).HasComment("排查类型(0 消防安全;1 综合)");

                entity.Property(e => e.UnauthorizedElectricalConnect).HasComment("在供电设施上擅自接线用电，擅自在导线上接用电器设备");

                entity.Property(e => e.UnauthorizedElectricalConnectPhoto).HasComment("照片");

                entity.Property(e => e.UseBottledLiquefiedGas).HasComment("出租房屋的公共区域、租住房间内、地下室、半地下室使用瓶装液化石油气");

                entity.Property(e => e.UseBottledLiquefiedGasPhoto).HasComment("照片");

                entity.Property(e => e.UseBurglarMesh).HasComment("外窗、疏散走道安装防盗网、广告牌、铁栅栏等影响逃生和灭火救援的障碍物");

                entity.Property(e => e.UseBurglarMeshPhoto).HasComment("照片");

                entity.Property(e => e.UseCeiling).HasComment("供人员疏散的场院、内院、天井设置不利于烟气扩散的顶棚、雨棚等");

                entity.Property(e => e.UseCeilingPhoto).HasComment("照片");

                entity.Property(e => e.UseElectricBicycle).HasComment("电动自行车、电动平衡车及其蓄电池在房屋公共区域、疏散走道、楼梯间、安全出口或房间内停放、充电");

                entity.Property(e => e.UseElectricBicyclePhoto).HasComment("照片");

                entity.Property(e => e.UseFlammableDangerousGoods).HasComment("生产、储存、经营易燃易爆危险品的自建房设置居住场所");

                entity.Property(e => e.UseFlammableDangerousGoodsPhoto).HasComment("生产、储存、经营易燃易爆危险品的自建房设置居住场所");

                entity.Property(e => e.UseFlammableInsulationMaterials).HasComment("采用易燃可燃保温材料的冷库、设置液氮制冷剂的冷库的自建房设置居住场所");

                entity.Property(e => e.UseFlammableInsulationMaterialsPhoto).HasComment("采用易燃可燃保温材料的冷库、设置液氮制冷剂的冷库的自建房设置居住场所");

                entity.Property(e => e.UseFlammableMaterials).HasComment("屋顶、围护结构、房间隔墙使用易燃可燃夹芯彩钢板搭建，疏散通道使用易燃可燃材料装修");

                entity.Property(e => e.UseFlammableMaterialsPhoto).HasComment("照片");

                entity.Property(e => e.UseStackedItems).HasComment("疏散走道、楼梯间、安全出口处堆放物品影响人员疏散");

                entity.Property(e => e.UseStackedItemsPhoto).HasComment("照片");

                entity.Property(e => e.UseStoreDangerousGoods).HasComment("人员密集场所违规使用、储存易燃易爆危险品");

                entity.Property(e => e.UseStoreDangerousGoodsPhoto).HasComment("照片");

                entity.Property(e => e.Yhcsbh).HasComment(@"编码(XF+yhfwbh
+4位顺序码)");

                entity.Property(e => e.NumyhwtGa).HasComment("隐患问题数量【公安】");

                entity.Property(e => e.NumyhwtXf).HasComment("隐患问题数量【消防】");

                entity.Property(e => e.YhlxGa).HasComment("隐患等级[公安]");
            });

            modelBuilder.Entity<ZmPlaceCommercialCheck>(entity =>
            {
                entity.HasComment("场所-商业信息表");

                entity.Property(e => e.Id).HasComment("ID");

                entity.Property(e => e.PlaceId).HasComment("场所ID");

                entity.Property(e => e.AboveThreeFloorSelf).HasComment("3层及3层以上建筑是否仅房主自住使用");

                entity.Property(e => e.AboveThreeFloorSelfPhoto).HasComment("3层及3层以上建筑是否仅房主自住使用");

                entity.Property(e => e.ActualPerson).HasComment("实际负责人");

                entity.Property(e => e.ActualPersonPhone).HasComment("实际负责人联系电话");

                entity.Property(e => e.AreaAdminAudit).HasComment("区县管理员审核是否通过");

                entity.Property(e => e.AreaAdminAuditMind).HasComment("区县管理员审核意见");

                entity.Property(e => e.BuildingAddress).HasComment("建筑物地址");

                entity.Property(e => e.BusinessArea).HasComment("经营面积");

                entity.Property(e => e.ChongDianVillage).HasComment("是否属于107个重点村(系统自动读取)");

                entity.Property(e => e.CityAdminAudit).HasComment("市级管理员审核是否通过");

                entity.Property(e => e.CityAdminAuditMind).HasComment("市级管理员审核意见");

                entity.Property(e => e.CommunityAdminAudit).HasComment("社区村级管理员审核是否通过");

                entity.Property(e => e.Contact).HasComment("联系方式");

                entity.Property(e => e.CreateBy).HasComment("创建者");

                entity.Property(e => e.CreateIp).HasComment("创建时的IP");

                entity.Property(e => e.CreateOn).HasComment("创建时间");

                entity.Property(e => e.DeleteBy).HasComment("删除者");

                entity.Property(e => e.DeleteIp).HasComment("删除时的IP");

                entity.Property(e => e.DeleteOn).HasComment("删除时间");

                entity.Property(e => e.EscapeStairsNum).HasComment("建筑现有疏散楼梯的数量（个）");

                entity.Property(e => e.FireInspectorSign).HasComment("消防安全排查员签字");

                entity.Property(e => e.FireSaferSign).HasComment("消防安全责任人签字");

                entity.Property(e => e.FireServiceDamaged).HasComment("建筑消防设施严重损坏");

                entity.Property(e => e.FireServiceDamagedPhoto).HasComment("照片");

                entity.Property(e => e.FirstExitNum).HasComment("建筑首层现有安全出口的数量（个）");

                entity.Property(e => e.FirstFloorArea).HasComment("建筑首层面积（平方米）");

                entity.Property(e => e.HouseId).HasComment("房屋ID");

                entity.Property(e => e.Householder).HasComment("户主姓名");

                entity.Property(e => e.IllegalConstruction).HasComment("违法建设隐患问题(2022年以来新增违法建设)");

                entity.Property(e => e.IllegalConstructionRemediation).HasComment("违法建设隐患问题整治措施(督促整改；关停查封；强制拆违)");

                entity.Property(e => e.IntegrationInspectorSign).HasComment("综合排查员签字");

                entity.Property(e => e.InvadeOccupyStreet).HasComment("侵街站道问题(2022年以来新增侵街占道违法设施)");

                entity.Property(e => e.InvadeOccupyStreetRemediation).HasComment("侵街站道问题整治措施(督促整改;处罚打击;强制拆违)");

                entity.Property(e => e.IsCompletelyIsolated).HasComment("居住区域与生产、经营、存储区域未使用实体砖墙、防火门等进行完全分隔，同时居住区域未设置直通室外的独立疏散楼梯、安全出口");

                entity.Property(e => e.IsCompletelyIsolatedPhoto).HasComment("照片");

                entity.Property(e => e.IsDelete).HasComment("是否删除");

                entity.Property(e => e.Level).HasComment("级别");

                entity.Property(e => e.Location).HasComment("场所位置");

                entity.Property(e => e.CheckMind).HasComment("核查意见");

                entity.Property(e => e.CheckPhoto).HasComment("核查照片");

                entity.Property(e => e.MerchantName).HasComment("场所（商户）名称");

                entity.Property(e => e.ModifiedBy).HasComment("修改者");

                entity.Property(e => e.ModifiedIp).HasComment("修改时的IP");

                entity.Property(e => e.ModifiedOn).HasComment("修改时间");

                entity.Property(e => e.NoLicense).HasComment("无证无照经营问题(存在无照经营场所;危害公共安全、破坏资源环境、滋扰群众生活;存在生产居住仓储一体等“多合一”问题)");

                entity.Property(e => e.NoLicenseRemediation).HasComment("无证无照经营问题整治措施(关停查封;处罚打击)");

                entity.Property(e => e.NotEnoughExits).HasComment("疏散通道或安全出口数量不足或严重堵塞");

                entity.Property(e => e.NotEnoughExitsPhoto).HasComment("照片");

                entity.Property(e => e.Pczt).HasComment("未排查,排查中,已排查有隐患,已排查无隐患");

                entity.Property(e => e.PlaceName).HasComment("场所名称（房屋地址）");

                entity.Property(e => e.SafeProduction).HasComment("安全生产隐患问题(不具备安全生产条件场所；危害公共安全、破坏资源环境、滋扰群众生活；存在生产仓储居住一体等“多合一”问题)");

                entity.Property(e => e.SafeProductionRemediation).HasComment("安全生产隐患问题整治措施(关停查封；处罚打击)");

                entity.Property(e => e.Security).HasComment("治安问题隐患(无照经营旅馆等特种行业；门窗缺少防盗锁具；缺少必要的监控设施；现存违法犯罪窝点；违法滋事风险人员居住)");

                entity.Property(e => e.SecurityRemediation).HasComment("治安隐患问题整治措施(督促整改；关停取缔；处罚打击)");

                entity.Property(e => e.SimpleSprinklerSystemNum).HasComment("建筑设有简易喷淋灭火系统数（套）");

                entity.Property(e => e.SmokeAlarmNum).HasComment("建筑设置联网型独立感烟报警器数（个）");

                entity.Property(e => e.SpecificPurpose).HasComment(@"具体用途包含（可多选）

□餐饮饭店 □民宿宾馆 □批发零售 □休闲娱乐 □教育培训 □医疗卫生 □养老服务 □生产加工 □仓储物流 □宗教场所□商务办公 □农贸市场 □其他（需备注）");

                entity.Property(e => e.StreetAdminAudit).HasComment("街道管理员审核是否通过");

                entity.Property(e => e.StreetAdminAuditMind).HasComment("街道管理员审核意见");

                entity.Property(e => e.ThreatenSafetyFireHazards).HasComment("其他可能严重威胁公共安全的火灾隐患");

                entity.Property(e => e.ThreatenSafetyFireHazardsPhoto).HasComment("照片");

                entity.Property(e => e.Type).HasComment("排查类型(0 消防安全;1 综合)");

                entity.Property(e => e.UnauthorizedElectricalConnect).HasComment("在供电设施上擅自接线用电，擅自在导线上接用电器设备");

                entity.Property(e => e.UnauthorizedElectricalConnectPhoto).HasComment("照片");

                entity.Property(e => e.UseBottledLiquefiedGas).HasComment("出租房屋的公共区域、租住房间内、地下室、半地下室使用瓶装液化石油气");

                entity.Property(e => e.UseBottledLiquefiedGasPhoto).HasComment("照片");

                entity.Property(e => e.UseBurglarMesh).HasComment("外窗、疏散走道安装防盗网、广告牌、铁栅栏等影响逃生和灭火救援的障碍物");

                entity.Property(e => e.UseBurglarMeshPhoto).HasComment("照片");

                entity.Property(e => e.UseCeiling).HasComment("供人员疏散的场院、内院、天井设置不利于烟气扩散的顶棚、雨棚等");

                entity.Property(e => e.UseCeilingPhoto).HasComment("照片");

                entity.Property(e => e.UseElectricBicycle).HasComment("电动自行车、电动平衡车及其蓄电池在房屋公共区域、疏散走道、楼梯间、安全出口或房间内停放、充电");

                entity.Property(e => e.UseElectricBicyclePhoto).HasComment("照片");

                entity.Property(e => e.UseFlammableDangerousGoods).HasComment("生产、储存、经营易燃易爆危险品的自建房设置居住场所");

                entity.Property(e => e.UseFlammableDangerousGoodsPhoto).HasComment("生产、储存、经营易燃易爆危险品的自建房设置居住场所");

                entity.Property(e => e.UseFlammableInsulationMaterials).HasComment("采用易燃可燃保温材料的冷库、设置液氮制冷剂的冷库的自建房设置居住场所");

                entity.Property(e => e.UseFlammableInsulationMaterialsPhoto).HasComment("采用易燃可燃保温材料的冷库、设置液氮制冷剂的冷库的自建房设置居住场所");

                entity.Property(e => e.UseFlammableMaterials).HasComment("屋顶、围护结构、房间隔墙使用易燃可燃夹芯彩钢板搭建，疏散通道使用易燃可燃材料装修");

                entity.Property(e => e.UseFlammableMaterialsPhoto).HasComment("照片");

                entity.Property(e => e.UseStackedItems).HasComment("疏散走道、楼梯间、安全出口处堆放物品影响人员疏散");

                entity.Property(e => e.UseStackedItemsPhoto).HasComment("照片");

                entity.Property(e => e.UseStoreDangerousGoods).HasComment("人员密集场所违规使用、储存易燃易爆危险品");

                entity.Property(e => e.UseStoreDangerousGoodsPhoto).HasComment("照片");

                entity.Property(e => e.Yhcsbh).HasComment(@"编码(XF+yhfwbh
+4位顺序码)");

                entity.Property(e => e.NumyhwtGa).HasComment("隐患问题数量【公安】");

                entity.Property(e => e.NumyhwtXf).HasComment("隐患问题数量【消防】");

                entity.Property(e => e.YhlxGa).HasComment("隐患等级[公安]");
            });


            modelBuilder.Entity<ZmPlaceCommercialCheckLog>(entity =>
            {
                entity.HasComment("场所-商业信息表日志表");

                entity.Property(e => e.Id).HasComment("ID");

                entity.Property(e => e.PlaceId).HasComment("场所ID");

                entity.Property(e => e.AboveThreeFloorSelf).HasComment("3层及3层以上建筑是否仅房主自住使用");

                entity.Property(e => e.AboveThreeFloorSelfPhoto).HasComment("3层及3层以上建筑是否仅房主自住使用");

                entity.Property(e => e.ActualPerson).HasComment("实际负责人");

                entity.Property(e => e.ActualPersonPhone).HasComment("实际负责人联系电话");

                entity.Property(e => e.AreaAdminAudit).HasComment("区县管理员审核是否通过");

                entity.Property(e => e.AreaAdminAuditMind).HasComment("区县管理员审核意见");

                entity.Property(e => e.BuildingAddress).HasComment("建筑物地址");

                entity.Property(e => e.BusinessArea).HasComment("经营面积");

                entity.Property(e => e.ChongDianVillage).HasComment("是否属于107个重点村(系统自动读取)");

                entity.Property(e => e.CityAdminAudit).HasComment("市级管理员审核是否通过");

                entity.Property(e => e.CityAdminAuditMind).HasComment("市级管理员审核意见");

                entity.Property(e => e.CommunityAdminAudit).HasComment("社区村级管理员审核是否通过");

                entity.Property(e => e.Contact).HasComment("联系方式");

                entity.Property(e => e.CreateBy).HasComment("创建者");

                entity.Property(e => e.CreateIp).HasComment("创建时的IP");

                entity.Property(e => e.CreateOn).HasComment("创建时间");

                entity.Property(e => e.DeleteBy).HasComment("删除者");

                entity.Property(e => e.DeleteIp).HasComment("删除时的IP");

                entity.Property(e => e.DeleteOn).HasComment("删除时间");

                entity.Property(e => e.EscapeStairsNum).HasComment("建筑现有疏散楼梯的数量（个）");

                entity.Property(e => e.FireInspectorSign).HasComment("消防安全排查员签字");

                entity.Property(e => e.FireSaferSign).HasComment("消防安全责任人签字");

                entity.Property(e => e.FireServiceDamaged).HasComment("建筑消防设施严重损坏");

                entity.Property(e => e.FireServiceDamagedPhoto).HasComment("照片");

                entity.Property(e => e.FirstExitNum).HasComment("建筑首层现有安全出口的数量（个）");

                entity.Property(e => e.FirstFloorArea).HasComment("建筑首层面积（平方米）");

                entity.Property(e => e.HouseId).HasComment("房屋ID");

                entity.Property(e => e.Householder).HasComment("户主姓名");

                entity.Property(e => e.IllegalConstruction).HasComment("违法建设隐患问题(2022年以来新增违法建设)");

                entity.Property(e => e.IllegalConstructionRemediation).HasComment("违法建设隐患问题整治措施(督促整改；关停查封；强制拆违)");

                entity.Property(e => e.IntegrationInspectorSign).HasComment("综合排查员签字");

                entity.Property(e => e.InvadeOccupyStreet).HasComment("侵街站道问题(2022年以来新增侵街占道违法设施)");

                entity.Property(e => e.InvadeOccupyStreetRemediation).HasComment("侵街站道问题整治措施(督促整改;处罚打击;强制拆违)");

                entity.Property(e => e.IsCompletelyIsolated).HasComment("居住区域与生产、经营、存储区域未使用实体砖墙、防火门等进行完全分隔，同时居住区域未设置直通室外的独立疏散楼梯、安全出口");

                entity.Property(e => e.IsCompletelyIsolatedPhoto).HasComment("照片");

                entity.Property(e => e.IsDelete).HasComment("是否删除");

                entity.Property(e => e.Level).HasComment("级别");

                entity.Property(e => e.Location).HasComment("场所位置");

                entity.Property(e => e.CheckMind).HasComment("核查意见");

                entity.Property(e => e.CheckPhoto).HasComment("核查照片");

                entity.Property(e => e.MerchantName).HasComment("场所（商户）名称");

                entity.Property(e => e.ModifiedBy).HasComment("修改者");

                entity.Property(e => e.ModifiedIp).HasComment("修改时的IP");

                entity.Property(e => e.ModifiedOn).HasComment("修改时间");

                entity.Property(e => e.NoLicense).HasComment("无证无照经营问题(存在无照经营场所;危害公共安全、破坏资源环境、滋扰群众生活;存在生产居住仓储一体等“多合一”问题)");

                entity.Property(e => e.NoLicenseRemediation).HasComment("无证无照经营问题整治措施(关停查封;处罚打击)");

                entity.Property(e => e.NotEnoughExits).HasComment("疏散通道或安全出口数量不足或严重堵塞");

                entity.Property(e => e.NotEnoughExitsPhoto).HasComment("照片");

                entity.Property(e => e.Pczt).HasComment("未排查,排查中,已排查有隐患,已排查无隐患");

                entity.Property(e => e.PlaceName).HasComment("场所名称（房屋地址）");

                entity.Property(e => e.SafeProduction).HasComment("安全生产隐患问题(不具备安全生产条件场所；危害公共安全、破坏资源环境、滋扰群众生活；存在生产仓储居住一体等“多合一”问题)");

                entity.Property(e => e.SafeProductionRemediation).HasComment("安全生产隐患问题整治措施(关停查封；处罚打击)");

                entity.Property(e => e.Security).HasComment("治安问题隐患(无照经营旅馆等特种行业；门窗缺少防盗锁具；缺少必要的监控设施；现存违法犯罪窝点；违法滋事风险人员居住)");

                entity.Property(e => e.SecurityRemediation).HasComment("治安隐患问题整治措施(督促整改；关停取缔；处罚打击)");

                entity.Property(e => e.SimpleSprinklerSystemNum).HasComment("建筑设有简易喷淋灭火系统数（套）");

                entity.Property(e => e.SmokeAlarmNum).HasComment("建筑设置联网型独立感烟报警器数（个）");

                entity.Property(e => e.SpecificPurpose).HasComment(@"具体用途包含（可多选）

□餐饮饭店 □民宿宾馆 □批发零售 □休闲娱乐 □教育培训 □医疗卫生 □养老服务 □生产加工 □仓储物流 □宗教场所□商务办公 □农贸市场 □其他（需备注）");

                entity.Property(e => e.StreetAdminAudit).HasComment("街道管理员审核是否通过");

                entity.Property(e => e.StreetAdminAuditMind).HasComment("街道管理员审核意见");

                entity.Property(e => e.ThreatenSafetyFireHazards).HasComment("其他可能严重威胁公共安全的火灾隐患");

                entity.Property(e => e.ThreatenSafetyFireHazardsPhoto).HasComment("照片");

                entity.Property(e => e.Type).HasComment("排查类型(0 消防安全;1 综合)");

                entity.Property(e => e.UnauthorizedElectricalConnect).HasComment("在供电设施上擅自接线用电，擅自在导线上接用电器设备");

                entity.Property(e => e.UnauthorizedElectricalConnectPhoto).HasComment("照片");

                entity.Property(e => e.UseBottledLiquefiedGas).HasComment("出租房屋的公共区域、租住房间内、地下室、半地下室使用瓶装液化石油气");

                entity.Property(e => e.UseBottledLiquefiedGasPhoto).HasComment("照片");

                entity.Property(e => e.UseBurglarMesh).HasComment("外窗、疏散走道安装防盗网、广告牌、铁栅栏等影响逃生和灭火救援的障碍物");

                entity.Property(e => e.UseBurglarMeshPhoto).HasComment("照片");

                entity.Property(e => e.UseCeiling).HasComment("供人员疏散的场院、内院、天井设置不利于烟气扩散的顶棚、雨棚等");

                entity.Property(e => e.UseCeilingPhoto).HasComment("照片");

                entity.Property(e => e.UseElectricBicycle).HasComment("电动自行车、电动平衡车及其蓄电池在房屋公共区域、疏散走道、楼梯间、安全出口或房间内停放、充电");

                entity.Property(e => e.UseElectricBicyclePhoto).HasComment("照片");

                entity.Property(e => e.UseFlammableDangerousGoods).HasComment("生产、储存、经营易燃易爆危险品的自建房设置居住场所");

                entity.Property(e => e.UseFlammableDangerousGoodsPhoto).HasComment("生产、储存、经营易燃易爆危险品的自建房设置居住场所");

                entity.Property(e => e.UseFlammableInsulationMaterials).HasComment("采用易燃可燃保温材料的冷库、设置液氮制冷剂的冷库的自建房设置居住场所");

                entity.Property(e => e.UseFlammableInsulationMaterialsPhoto).HasComment("采用易燃可燃保温材料的冷库、设置液氮制冷剂的冷库的自建房设置居住场所");

                entity.Property(e => e.UseFlammableMaterials).HasComment("屋顶、围护结构、房间隔墙使用易燃可燃夹芯彩钢板搭建，疏散通道使用易燃可燃材料装修");

                entity.Property(e => e.UseFlammableMaterialsPhoto).HasComment("照片");

                entity.Property(e => e.UseStackedItems).HasComment("疏散走道、楼梯间、安全出口处堆放物品影响人员疏散");

                entity.Property(e => e.UseStackedItemsPhoto).HasComment("照片");

                entity.Property(e => e.UseStoreDangerousGoods).HasComment("人员密集场所违规使用、储存易燃易爆危险品");

                entity.Property(e => e.UseStoreDangerousGoodsPhoto).HasComment("照片");

                entity.Property(e => e.Yhcsbh).HasComment(@"编码(XF+yhfwbh
+4位顺序码)");

                entity.Property(e => e.NumyhwtGa).HasComment("隐患问题数量【公安】");

                entity.Property(e => e.NumyhwtXf).HasComment("隐患问题数量【消防】");

                entity.Property(e => e.YhlxGa).HasComment("隐患等级[公安]");
            });

            modelBuilder.Entity<ZmPlaceResident>(entity =>
            {
                entity.HasComment("场所-居住信息表");

                entity.Property(e => e.Id).HasComment("场所ID");

                entity.Property(e => e.CheckMind).HasComment("核查意见");

                entity.Property(e => e.CheckPhoto).HasComment("核查照片");

                entity.Property(e => e.AboveThreeFloorMaxPopulation).HasComment("其中三层（含）及以上居住的人数");

                entity.Property(e => e.AboveThreeFloorSelf).HasComment("3层及3层以上建筑是否仅房主自住使用");

                entity.Property(e => e.AboveThreeFloorSelfPhoto).HasComment("3层及3层以上建筑是否仅房主自住使用");

                entity.Property(e => e.AboveThreeFloorsEscape).HasComment("3层及以上全部房间是否配备逃生绳、配备灭火器");

                entity.Property(e => e.AboveThreeFloorsEscapePhoto).HasComment("3层及以上全部房间是否配备逃生绳、配备灭火器");

                entity.Property(e => e.ActualPerson).HasComment("实际负责人");

                entity.Property(e => e.ActualPersonPhone).HasComment("实际负责人联系电话");

                entity.Property(e => e.AreaAdminAudit).HasComment("区县管理员审核是否通过");

                entity.Property(e => e.AreaAdminAuditMind).HasComment("区县管理员审核意见");

                entity.Property(e => e.BuildingAddress).HasComment("建筑物地址");

                entity.Property(e => e.BuildingFloors).HasComment("建筑层数");

                entity.Property(e => e.ChargingFacilitiesNoStandard).HasComment("电动自行车集中充电设施未按照农村地区电动自行车集中充电设施建设指引要求建设或整改");

                entity.Property(e => e.ChargingFacilitiesNoStandardPhoto).HasComment("电动自行车集中充电设施未按照农村地区电动自行车集中充电设施建设指引要求建设或整改");

                entity.Property(e => e.ChongDianVillage).HasComment("是否属于107个重点村");

                entity.Property(e => e.CityAdminAudit).HasComment("市级管理员审核是否通过");

                entity.Property(e => e.CityAdminAuditMind).HasComment("市级管理员审核意见");

                entity.Property(e => e.CommunityAdminAudit).HasComment("社区村级管理员审核是否通过");

                entity.Property(e => e.Contact).HasComment("联系方式");

                entity.Property(e => e.CreateBy).HasComment("创建者");

                entity.Property(e => e.CreateIp).HasComment("创建时的IP");

                entity.Property(e => e.CreateOn).HasComment("创建时间");

                entity.Property(e => e.DeleteBy).HasComment("删除者");

                entity.Property(e => e.DeleteIp).HasComment("删除时的IP");

                entity.Property(e => e.DeleteOn).HasComment("删除时间");

                entity.Property(e => e.EscapeStairsNum).HasComment("建筑现有疏散楼梯的数量（个）");

                entity.Property(e => e.FireInspectorSign).HasComment("消防安全排查员签字");

                entity.Property(e => e.FirstExitNum).HasComment("建筑首层现有安全出口的数量（个）");

                entity.Property(e => e.FirstFloorArea).HasComment("建筑首层面积（平方米）");

                entity.Property(e => e.HouseId).HasComment("房屋ID");

                entity.Property(e => e.Householder).HasComment("户主姓名");

                entity.Property(e => e.HouseholderSign).HasComment("户主签字");

                entity.Property(e => e.IllegalConstruction).HasComment("违法建设隐患(2022年以来新增违法建设)");

                entity.Property(e => e.IllegalConstructionRemediation).HasComment("违法建设隐患问题整治措施(督促整改;关停查封;处罚打击;强制拆违)");

                entity.Property(e => e.IntegrationInspectorSign).HasComment("综合排查员签字");

                entity.Property(e => e.IsCompletelyIsolated).HasComment("居住区域与生产、经营、存储区域未使用实体砖墙、防火门等进行完全分隔，同时居住区域未设置直通室外的独立疏散楼梯、安全出口");

                entity.Property(e => e.IsCompletelyIsolatedPhoto).HasComment("居住区域与生产、经营、存储区域未使用实体砖墙、防火门等进行完全分隔，同时居住区域未设置直通室外的独立疏散楼梯、安全出口");

                entity.Property(e => e.IsDelete).HasComment("是否删除");

                entity.Property(e => e.LeaseRoomPeoples).HasComment("出租房间居住人数");

                entity.Property(e => e.LeaseRooms).HasComment("出租房间数");

                entity.Property(e => e.Level).HasComment("级别");

                entity.Property(e => e.Location).HasComment("场所位置");

                entity.Property(e => e.MaxPopulation).HasComment("整栋（院）居住总人数");

                entity.Property(e => e.ModifiedBy).HasComment("修改者");

                entity.Property(e => e.ModifiedIp).HasComment("修改时的IP");

                entity.Property(e => e.ModifiedOn).HasComment("修改时间");

                entity.Property(e => e.NotEnoughExits).HasComment("出租房屋3层及以上出租住人，且不满足2部疏散楼梯和首层2个安全出口");

                entity.Property(e => e.NotEnoughExitsPhoto).HasComment("出租房屋3层及以上出租住人，且不满足2部疏散楼梯和首层2个安全出口");

                entity.Property(e => e.Pczt).HasComment("未排查,排查中,已排查有隐患,已排查无隐患");

                entity.Property(e => e.PlaceName).HasComment("场所名称（房屋地址）");

                entity.Property(e => e.RealPopulation).HasComment("实际居住人数");

                entity.Property(e => e.RealPopulationAbove3Floors).HasComment("三层（含）及以上居住人数");

                entity.Property(e => e.Security).HasComment("治安隐患问题(未按要求落实租住人员登记；门窗缺少防盗锁具；缺少必要的监控设施；群租日租；现存违法犯罪窝点；违法滋事风险人员居住)");

                entity.Property(e => e.SecurityRemediation).HasComment("治安隐患问题整治措施(督促整改;关停取缔;处罚打击)");

                entity.Property(e => e.SimpleSprinklerSystemNum).HasComment("建筑设有简易喷淋灭火系统数（套）");

                entity.Property(e => e.SmokeAlarmNum).HasComment("建筑设置联网型独立感烟报警器数（个）");

                entity.Property(e => e.StreetAdminAudit).HasComment("街道管理员审核是否通过");

                entity.Property(e => e.StreetAdminAuditMind).HasComment("街道管理员审核意见");

                entity.Property(e => e.Type).HasComment("排查类型(0 消防安全;1 综合)");

                entity.Property(e => e.UnauthorizedElectricalConnect).HasComment("在供电设施上擅自接线用电，擅自在导线上接用电器设备");

                entity.Property(e => e.UnauthorizedElectricalConnectPhoto).HasComment("在供电设施上擅自接线用电，擅自在导线上接用电器设备");

                entity.Property(e => e.UseBottledLiquefiedGas).HasComment("出租房屋的公共区域、租住房间内、地下室、半地下室使用瓶装液化石油气");

                entity.Property(e => e.UseBottledLiquefiedGasPhoto).HasComment("出租房屋的公共区域、租住房间内、地下室、半地下室使用瓶装液化石油气");

                entity.Property(e => e.UseBurglarMesh).HasComment("外窗、疏散走道安装防盗网、广告牌、铁栅栏等影响逃生和灭火救援的障碍物");

                entity.Property(e => e.UseBurglarMeshPhoto).HasComment("外窗、疏散走道安装防盗网、广告牌、铁栅栏等影响逃生和灭火救援的障碍物");

                entity.Property(e => e.UseCeiling).HasComment("供人员疏散的场院、内院、天井设置不利于烟气扩散的顶棚、雨棚等");

                entity.Property(e => e.UseCeilingPhoto).HasComment("供人员疏散的场院、内院、天井设置不利于烟气扩散的顶棚、雨棚等");

                entity.Property(e => e.UseElectricBicycle).HasComment("电动自行车、电动平衡车及其蓄电池在房屋公共区域、疏散走道、楼梯间、安全出口或房间内停放、充电");

                entity.Property(e => e.UseElectricBicyclePhoto).HasComment("电动自行车、电动平衡车及其蓄电池在房屋公共区域、疏散走道、楼梯间、安全出口或房间内停放、充电");

                entity.Property(e => e.UseFlammableDangerousGoods).HasComment("生产、储存、经营易燃易爆危险品的自建房设置居住场所");

                entity.Property(e => e.UseFlammableDangerousGoodsPhoto).HasComment("生产、储存、经营易燃易爆危险品的自建房设置居住场所");

                entity.Property(e => e.UseFlammableInsulationMaterials).HasComment("采用易燃可燃保温材料的冷库、设置液氮制冷剂的冷库的自建房设置居住场所");

                entity.Property(e => e.UseFlammableInsulationMaterialsPhoto).HasComment("采用易燃可燃保温材料的冷库、设置液氮制冷剂的冷库的自建房设置居住场所");

                entity.Property(e => e.UseFlammableMaterials).HasComment("屋顶、围护结构、房间隔墙使用易燃可燃夹芯彩钢板搭建，疏散通道使用易燃可燃材料装修");

                entity.Property(e => e.UseFlammableMaterialsPhoto).HasComment("屋顶、围护结构、房间隔墙使用易燃可燃夹芯彩钢板搭建，疏散通道使用易燃可燃材料装修");

                entity.Property(e => e.UseIndependentSmokeAlarm).HasComment("所有自建房出租房间是否设置联网型独立感烟报警器，以及简易喷淋灭火系统");

                entity.Property(e => e.UseIndependentSmokeAlarmPhoto).HasComment("所有自建房出租房间是否设置联网型独立感烟报警器，以及简易喷淋灭火系统");

                entity.Property(e => e.UseStackedItems).HasComment("疏散走道、楼梯间、安全出口处堆放物品影响人员疏散");

                entity.Property(e => e.UseStackedItemsPhoto).HasComment("疏散走道、楼梯间、安全出口处堆放物品影响人员疏散");

                entity.Property(e => e.Yhcsbh).HasComment(@"编码(XF+yhfwbh
+4位顺序码)");
                entity.Property(e => e.NumyhwtGa).HasComment("隐患问题数量【公安】");

                entity.Property(e => e.NumyhwtXf).HasComment("隐患问题数量【消防】");

                entity.Property(e => e.YhlxGa).HasComment("隐患等级[公安]");
            });

            modelBuilder.Entity<ZmPlaceResidentCheck>(entity =>
            {
                entity.HasComment("场所-居住信息表");

                entity.Property(e => e.Id).HasComment("ID");

                entity.Property(e => e.PlaceId).HasComment("场所ID");

                entity.Property(e => e.CheckMind).HasComment("核查意见");

                entity.Property(e => e.CheckPhoto).HasComment("核查照片");

                entity.Property(e => e.AboveThreeFloorMaxPopulation).HasComment("其中三层（含）及以上居住的人数");

                entity.Property(e => e.AboveThreeFloorSelf).HasComment("3层及3层以上建筑是否仅房主自住使用");

                entity.Property(e => e.AboveThreeFloorSelfPhoto).HasComment("3层及3层以上建筑是否仅房主自住使用");

                entity.Property(e => e.AboveThreeFloorsEscape).HasComment("3层及以上全部房间是否配备逃生绳、配备灭火器");

                entity.Property(e => e.AboveThreeFloorsEscapePhoto).HasComment("3层及以上全部房间是否配备逃生绳、配备灭火器");

                entity.Property(e => e.ActualPerson).HasComment("实际负责人");

                entity.Property(e => e.ActualPersonPhone).HasComment("实际负责人联系电话");

                entity.Property(e => e.AreaAdminAudit).HasComment("区县管理员审核是否通过");

                entity.Property(e => e.AreaAdminAuditMind).HasComment("区县管理员审核意见");

                entity.Property(e => e.BuildingAddress).HasComment("建筑物地址");

                entity.Property(e => e.BuildingFloors).HasComment("建筑层数");

                entity.Property(e => e.ChargingFacilitiesNoStandard).HasComment("电动自行车集中充电设施未按照农村地区电动自行车集中充电设施建设指引要求建设或整改");

                entity.Property(e => e.ChargingFacilitiesNoStandardPhoto).HasComment("电动自行车集中充电设施未按照农村地区电动自行车集中充电设施建设指引要求建设或整改");

                entity.Property(e => e.ChongDianVillage).HasComment("是否属于107个重点村");

                entity.Property(e => e.CityAdminAudit).HasComment("市级管理员审核是否通过");

                entity.Property(e => e.CityAdminAuditMind).HasComment("市级管理员审核意见");

                entity.Property(e => e.CommunityAdminAudit).HasComment("社区村级管理员审核是否通过");

                entity.Property(e => e.Contact).HasComment("联系方式");

                entity.Property(e => e.CreateBy).HasComment("创建者");

                entity.Property(e => e.CreateIp).HasComment("创建时的IP");

                entity.Property(e => e.CreateOn).HasComment("创建时间");

                entity.Property(e => e.DeleteBy).HasComment("删除者");

                entity.Property(e => e.DeleteIp).HasComment("删除时的IP");

                entity.Property(e => e.DeleteOn).HasComment("删除时间");

                entity.Property(e => e.EscapeStairsNum).HasComment("建筑现有疏散楼梯的数量（个）");

                entity.Property(e => e.FireInspectorSign).HasComment("消防安全排查员签字");

                entity.Property(e => e.FirstExitNum).HasComment("建筑首层现有安全出口的数量（个）");

                entity.Property(e => e.FirstFloorArea).HasComment("建筑首层面积（平方米）");

                entity.Property(e => e.HouseId).HasComment("房屋ID");

                entity.Property(e => e.Householder).HasComment("户主姓名");

                entity.Property(e => e.HouseholderSign).HasComment("户主签字");

                entity.Property(e => e.IllegalConstruction).HasComment("违法建设隐患(2022年以来新增违法建设)");

                entity.Property(e => e.IllegalConstructionRemediation).HasComment("违法建设隐患问题整治措施(督促整改;关停查封;处罚打击;强制拆违)");

                entity.Property(e => e.IntegrationInspectorSign).HasComment("综合排查员签字");

                entity.Property(e => e.IsCompletelyIsolated).HasComment("居住区域与生产、经营、存储区域未使用实体砖墙、防火门等进行完全分隔，同时居住区域未设置直通室外的独立疏散楼梯、安全出口");

                entity.Property(e => e.IsCompletelyIsolatedPhoto).HasComment("居住区域与生产、经营、存储区域未使用实体砖墙、防火门等进行完全分隔，同时居住区域未设置直通室外的独立疏散楼梯、安全出口");

                entity.Property(e => e.IsDelete).HasComment("是否删除");

                entity.Property(e => e.LeaseRoomPeoples).HasComment("出租房间居住人数");

                entity.Property(e => e.LeaseRooms).HasComment("出租房间数");

                entity.Property(e => e.Level).HasComment("级别");

                entity.Property(e => e.Location).HasComment("场所位置");

                entity.Property(e => e.MaxPopulation).HasComment("整栋（院）居住总人数");

                entity.Property(e => e.ModifiedBy).HasComment("修改者");

                entity.Property(e => e.ModifiedIp).HasComment("修改时的IP");

                entity.Property(e => e.ModifiedOn).HasComment("修改时间");

                entity.Property(e => e.NotEnoughExits).HasComment("出租房屋3层及以上出租住人，且不满足2部疏散楼梯和首层2个安全出口");

                entity.Property(e => e.NotEnoughExitsPhoto).HasComment("出租房屋3层及以上出租住人，且不满足2部疏散楼梯和首层2个安全出口");

                entity.Property(e => e.Pczt).HasComment("未排查,排查中,已排查有隐患,已排查无隐患");

                entity.Property(e => e.PlaceName).HasComment("场所名称（房屋地址）");

                entity.Property(e => e.RealPopulation).HasComment("实际居住人数");

                entity.Property(e => e.RealPopulationAbove3Floors).HasComment("三层（含）及以上居住人数");

                entity.Property(e => e.Security).HasComment("治安隐患问题(未按要求落实租住人员登记；门窗缺少防盗锁具；缺少必要的监控设施；群租日租；现存违法犯罪窝点；违法滋事风险人员居住)");

                entity.Property(e => e.SecurityRemediation).HasComment("治安隐患问题整治措施(督促整改;关停取缔;处罚打击)");

                entity.Property(e => e.SimpleSprinklerSystemNum).HasComment("建筑设有简易喷淋灭火系统数（套）");

                entity.Property(e => e.SmokeAlarmNum).HasComment("建筑设置联网型独立感烟报警器数（个）");

                entity.Property(e => e.StreetAdminAudit).HasComment("街道管理员审核是否通过");

                entity.Property(e => e.StreetAdminAuditMind).HasComment("街道管理员审核意见");

                entity.Property(e => e.Type).HasComment("排查类型(0 消防安全;1 综合)");

                entity.Property(e => e.UnauthorizedElectricalConnect).HasComment("在供电设施上擅自接线用电，擅自在导线上接用电器设备");

                entity.Property(e => e.UnauthorizedElectricalConnectPhoto).HasComment("在供电设施上擅自接线用电，擅自在导线上接用电器设备");

                entity.Property(e => e.UseBottledLiquefiedGas).HasComment("出租房屋的公共区域、租住房间内、地下室、半地下室使用瓶装液化石油气");

                entity.Property(e => e.UseBottledLiquefiedGasPhoto).HasComment("出租房屋的公共区域、租住房间内、地下室、半地下室使用瓶装液化石油气");

                entity.Property(e => e.UseBurglarMesh).HasComment("外窗、疏散走道安装防盗网、广告牌、铁栅栏等影响逃生和灭火救援的障碍物");

                entity.Property(e => e.UseBurglarMeshPhoto).HasComment("外窗、疏散走道安装防盗网、广告牌、铁栅栏等影响逃生和灭火救援的障碍物");

                entity.Property(e => e.UseCeiling).HasComment("供人员疏散的场院、内院、天井设置不利于烟气扩散的顶棚、雨棚等");

                entity.Property(e => e.UseCeilingPhoto).HasComment("供人员疏散的场院、内院、天井设置不利于烟气扩散的顶棚、雨棚等");

                entity.Property(e => e.UseElectricBicycle).HasComment("电动自行车、电动平衡车及其蓄电池在房屋公共区域、疏散走道、楼梯间、安全出口或房间内停放、充电");

                entity.Property(e => e.UseElectricBicyclePhoto).HasComment("电动自行车、电动平衡车及其蓄电池在房屋公共区域、疏散走道、楼梯间、安全出口或房间内停放、充电");

                entity.Property(e => e.UseFlammableDangerousGoods).HasComment("生产、储存、经营易燃易爆危险品的自建房设置居住场所");

                entity.Property(e => e.UseFlammableDangerousGoodsPhoto).HasComment("生产、储存、经营易燃易爆危险品的自建房设置居住场所");

                entity.Property(e => e.UseFlammableInsulationMaterials).HasComment("采用易燃可燃保温材料的冷库、设置液氮制冷剂的冷库的自建房设置居住场所");

                entity.Property(e => e.UseFlammableInsulationMaterialsPhoto).HasComment("采用易燃可燃保温材料的冷库、设置液氮制冷剂的冷库的自建房设置居住场所");

                entity.Property(e => e.UseFlammableMaterials).HasComment("屋顶、围护结构、房间隔墙使用易燃可燃夹芯彩钢板搭建，疏散通道使用易燃可燃材料装修");

                entity.Property(e => e.UseFlammableMaterialsPhoto).HasComment("屋顶、围护结构、房间隔墙使用易燃可燃夹芯彩钢板搭建，疏散通道使用易燃可燃材料装修");

                entity.Property(e => e.UseIndependentSmokeAlarm).HasComment("所有自建房出租房间是否设置联网型独立感烟报警器，以及简易喷淋灭火系统");

                entity.Property(e => e.UseIndependentSmokeAlarmPhoto).HasComment("所有自建房出租房间是否设置联网型独立感烟报警器，以及简易喷淋灭火系统");

                entity.Property(e => e.UseStackedItems).HasComment("疏散走道、楼梯间、安全出口处堆放物品影响人员疏散");

                entity.Property(e => e.UseStackedItemsPhoto).HasComment("疏散走道、楼梯间、安全出口处堆放物品影响人员疏散");

                entity.Property(e => e.Yhcsbh).HasComment(@"编码(XF+yhfwbh
+4位顺序码)");

                entity.Property(e => e.NumyhwtGa).HasComment("隐患问题数量【公安】");

                entity.Property(e => e.NumyhwtXf).HasComment("隐患问题数量【消防】");

                entity.Property(e => e.YhlxGa).HasComment("隐患等级[公安]");
            });

            modelBuilder.Entity<ZmPlaceResidentCheckLog>(entity =>
            {
                entity.HasComment("场所-居住信息日志表");

                entity.Property(e => e.Id).HasComment("ID");

                entity.Property(e => e.PlaceId).HasComment("场所ID");

                entity.Property(e => e.CheckMind).HasComment("核查意见");

                entity.Property(e => e.CheckPhoto).HasComment("核查照片");

                entity.Property(e => e.AboveThreeFloorMaxPopulation).HasComment("其中三层（含）及以上居住的人数");

                entity.Property(e => e.AboveThreeFloorSelf).HasComment("3层及3层以上建筑是否仅房主自住使用");

                entity.Property(e => e.AboveThreeFloorSelfPhoto).HasComment("3层及3层以上建筑是否仅房主自住使用");

                entity.Property(e => e.AboveThreeFloorsEscape).HasComment("3层及以上全部房间是否配备逃生绳、配备灭火器");

                entity.Property(e => e.AboveThreeFloorsEscapePhoto).HasComment("3层及以上全部房间是否配备逃生绳、配备灭火器");

                entity.Property(e => e.ActualPerson).HasComment("实际负责人");

                entity.Property(e => e.ActualPersonPhone).HasComment("实际负责人联系电话");

                entity.Property(e => e.AreaAdminAudit).HasComment("区县管理员审核是否通过");

                entity.Property(e => e.AreaAdminAuditMind).HasComment("区县管理员审核意见");

                entity.Property(e => e.BuildingAddress).HasComment("建筑物地址");

                entity.Property(e => e.BuildingFloors).HasComment("建筑层数");

                entity.Property(e => e.ChargingFacilitiesNoStandard).HasComment("电动自行车集中充电设施未按照农村地区电动自行车集中充电设施建设指引要求建设或整改");

                entity.Property(e => e.ChargingFacilitiesNoStandardPhoto).HasComment("电动自行车集中充电设施未按照农村地区电动自行车集中充电设施建设指引要求建设或整改");

                entity.Property(e => e.ChongDianVillage).HasComment("是否属于107个重点村");

                entity.Property(e => e.CityAdminAudit).HasComment("市级管理员审核是否通过");

                entity.Property(e => e.CityAdminAuditMind).HasComment("市级管理员审核意见");

                entity.Property(e => e.CommunityAdminAudit).HasComment("社区村级管理员审核是否通过");

                entity.Property(e => e.Contact).HasComment("联系方式");

                entity.Property(e => e.CreateBy).HasComment("创建者");

                entity.Property(e => e.CreateIp).HasComment("创建时的IP");

                entity.Property(e => e.CreateOn).HasComment("创建时间");

                entity.Property(e => e.DeleteBy).HasComment("删除者");

                entity.Property(e => e.DeleteIp).HasComment("删除时的IP");

                entity.Property(e => e.DeleteOn).HasComment("删除时间");

                entity.Property(e => e.EscapeStairsNum).HasComment("建筑现有疏散楼梯的数量（个）");

                entity.Property(e => e.FireInspectorSign).HasComment("消防安全排查员签字");

                entity.Property(e => e.FirstExitNum).HasComment("建筑首层现有安全出口的数量（个）");

                entity.Property(e => e.FirstFloorArea).HasComment("建筑首层面积（平方米）");

                entity.Property(e => e.HouseId).HasComment("房屋ID");

                entity.Property(e => e.Householder).HasComment("户主姓名");

                entity.Property(e => e.HouseholderSign).HasComment("户主签字");

                entity.Property(e => e.IllegalConstruction).HasComment("违法建设隐患(2022年以来新增违法建设)");

                entity.Property(e => e.IllegalConstructionRemediation).HasComment("违法建设隐患问题整治措施(督促整改;关停查封;处罚打击;强制拆违)");

                entity.Property(e => e.IntegrationInspectorSign).HasComment("综合排查员签字");

                entity.Property(e => e.IsCompletelyIsolated).HasComment("居住区域与生产、经营、存储区域未使用实体砖墙、防火门等进行完全分隔，同时居住区域未设置直通室外的独立疏散楼梯、安全出口");

                entity.Property(e => e.IsCompletelyIsolatedPhoto).HasComment("居住区域与生产、经营、存储区域未使用实体砖墙、防火门等进行完全分隔，同时居住区域未设置直通室外的独立疏散楼梯、安全出口");

                entity.Property(e => e.IsDelete).HasComment("是否删除");

                entity.Property(e => e.LeaseRoomPeoples).HasComment("出租房间居住人数");

                entity.Property(e => e.LeaseRooms).HasComment("出租房间数");

                entity.Property(e => e.Level).HasComment("级别");

                entity.Property(e => e.Location).HasComment("场所位置");

                entity.Property(e => e.MaxPopulation).HasComment("整栋（院）居住总人数");

                entity.Property(e => e.ModifiedBy).HasComment("修改者");

                entity.Property(e => e.ModifiedIp).HasComment("修改时的IP");

                entity.Property(e => e.ModifiedOn).HasComment("修改时间");

                entity.Property(e => e.NotEnoughExits).HasComment("出租房屋3层及以上出租住人，且不满足2部疏散楼梯和首层2个安全出口");

                entity.Property(e => e.NotEnoughExitsPhoto).HasComment("出租房屋3层及以上出租住人，且不满足2部疏散楼梯和首层2个安全出口");

                entity.Property(e => e.Pczt).HasComment("未排查,排查中,已排查有隐患,已排查无隐患");

                entity.Property(e => e.PlaceName).HasComment("场所名称（房屋地址）");

                entity.Property(e => e.RealPopulation).HasComment("实际居住人数");

                entity.Property(e => e.RealPopulationAbove3Floors).HasComment("三层（含）及以上居住人数");

                entity.Property(e => e.Security).HasComment("治安隐患问题(未按要求落实租住人员登记；门窗缺少防盗锁具；缺少必要的监控设施；群租日租；现存违法犯罪窝点；违法滋事风险人员居住)");

                entity.Property(e => e.SecurityRemediation).HasComment("治安隐患问题整治措施(督促整改;关停取缔;处罚打击)");

                entity.Property(e => e.SimpleSprinklerSystemNum).HasComment("建筑设有简易喷淋灭火系统数（套）");

                entity.Property(e => e.SmokeAlarmNum).HasComment("建筑设置联网型独立感烟报警器数（个）");

                entity.Property(e => e.StreetAdminAudit).HasComment("街道管理员审核是否通过");

                entity.Property(e => e.StreetAdminAuditMind).HasComment("街道管理员审核意见");

                entity.Property(e => e.Type).HasComment("排查类型(0 消防安全;1 综合)");

                entity.Property(e => e.UnauthorizedElectricalConnect).HasComment("在供电设施上擅自接线用电，擅自在导线上接用电器设备");

                entity.Property(e => e.UnauthorizedElectricalConnectPhoto).HasComment("在供电设施上擅自接线用电，擅自在导线上接用电器设备");

                entity.Property(e => e.UseBottledLiquefiedGas).HasComment("出租房屋的公共区域、租住房间内、地下室、半地下室使用瓶装液化石油气");

                entity.Property(e => e.UseBottledLiquefiedGasPhoto).HasComment("出租房屋的公共区域、租住房间内、地下室、半地下室使用瓶装液化石油气");

                entity.Property(e => e.UseBurglarMesh).HasComment("外窗、疏散走道安装防盗网、广告牌、铁栅栏等影响逃生和灭火救援的障碍物");

                entity.Property(e => e.UseBurglarMeshPhoto).HasComment("外窗、疏散走道安装防盗网、广告牌、铁栅栏等影响逃生和灭火救援的障碍物");

                entity.Property(e => e.UseCeiling).HasComment("供人员疏散的场院、内院、天井设置不利于烟气扩散的顶棚、雨棚等");

                entity.Property(e => e.UseCeilingPhoto).HasComment("供人员疏散的场院、内院、天井设置不利于烟气扩散的顶棚、雨棚等");

                entity.Property(e => e.UseElectricBicycle).HasComment("电动自行车、电动平衡车及其蓄电池在房屋公共区域、疏散走道、楼梯间、安全出口或房间内停放、充电");

                entity.Property(e => e.UseElectricBicyclePhoto).HasComment("电动自行车、电动平衡车及其蓄电池在房屋公共区域、疏散走道、楼梯间、安全出口或房间内停放、充电");

                entity.Property(e => e.UseFlammableDangerousGoods).HasComment("生产、储存、经营易燃易爆危险品的自建房设置居住场所");

                entity.Property(e => e.UseFlammableDangerousGoodsPhoto).HasComment("生产、储存、经营易燃易爆危险品的自建房设置居住场所");

                entity.Property(e => e.UseFlammableInsulationMaterials).HasComment("采用易燃可燃保温材料的冷库、设置液氮制冷剂的冷库的自建房设置居住场所");

                entity.Property(e => e.UseFlammableInsulationMaterialsPhoto).HasComment("采用易燃可燃保温材料的冷库、设置液氮制冷剂的冷库的自建房设置居住场所");

                entity.Property(e => e.UseFlammableMaterials).HasComment("屋顶、围护结构、房间隔墙使用易燃可燃夹芯彩钢板搭建，疏散通道使用易燃可燃材料装修");

                entity.Property(e => e.UseFlammableMaterialsPhoto).HasComment("屋顶、围护结构、房间隔墙使用易燃可燃夹芯彩钢板搭建，疏散通道使用易燃可燃材料装修");

                entity.Property(e => e.UseIndependentSmokeAlarm).HasComment("所有自建房出租房间是否设置联网型独立感烟报警器，以及简易喷淋灭火系统");

                entity.Property(e => e.UseIndependentSmokeAlarmPhoto).HasComment("所有自建房出租房间是否设置联网型独立感烟报警器，以及简易喷淋灭火系统");

                entity.Property(e => e.UseStackedItems).HasComment("疏散走道、楼梯间、安全出口处堆放物品影响人员疏散");

                entity.Property(e => e.UseStackedItemsPhoto).HasComment("疏散走道、楼梯间、安全出口处堆放物品影响人员疏散");

                entity.Property(e => e.Yhcsbh).HasComment(@"编码(XF+yhfwbh
+4位顺序码)");

                entity.Property(e => e.NumyhwtGa).HasComment("隐患问题数量【公安】");

                entity.Property(e => e.NumyhwtXf).HasComment("隐患问题数量【消防】");

                entity.Property(e => e.YhlxGa).HasComment("隐患等级[公安]");
            });


            modelBuilder.Entity<ZmSystemConfig>(entity =>
            {
                entity.HasComment("配置表");

                entity.Property(e => e.Id).HasComment("配置id");

                entity.Property(e => e.CreateOn).HasComment("创建时间");

                entity.Property(e => e.DeleteOn).HasComment("删除时间");

                entity.Property(e => e.Desc).HasComment("配置简介");

                entity.Property(e => e.IsDelete).HasComment("是否删除");

                entity.Property(e => e.ModifiedOn).HasComment("修改时间");

                entity.Property(e => e.Name).HasComment("名称");

                entity.Property(e => e.Value).HasComment("值");
            });

            modelBuilder.Entity<ZmSystemLog>(entity =>
            {
                entity.HasComment("操作记录表");

                entity.Property(e => e.Id).HasComment("操作记录ID");

                entity.Property(e => e.CreateOn).HasComment("创建时间");

                entity.Property(e => e.DeleteOn).HasComment("删除时间");

                entity.Property(e => e.Ip).HasComment("登录IP");

                entity.Property(e => e.IsDelete).HasComment("是否删除");

                entity.Property(e => e.LogTime).HasComment("操作时间");

                entity.Property(e => e.LoginType).HasComment("设备类型");

                entity.Property(e => e.ModifiedOn).HasComment("修改时间");

                entity.Property(e => e.Path).HasComment("链接");

                entity.Property(e => e.Respret).HasComment("操作结果");

                entity.Property(e => e.UserId).HasComment("用户id");

                entity.Property(e => e.UserName).HasComment("用户名");

                entity.Property(e => e.MobileBrand).HasComment("手机品牌");

                entity.Property(e => e.MobileSystem).HasComment("手机操作系统");

                entity.Property(e => e.AppVersion).HasComment("APP版本");

                entity.Property(e => e.ErrorStack).HasComment("错误信息及堆栈");
            });

            modelBuilder.Entity<ZmUser>(entity =>
            {
                entity.HasComment("用户表");

                entity.Property(e => e.Id).HasComment("用户ID");

                entity.Property(e => e.SurveyUnitId).HasComment("所属调查单位ID");

                entity.Property(e => e.Avatar).HasComment("用户头像");

                entity.Property(e => e.CreateIp).HasComment("注册时的IP");

                entity.Property(e => e.CreateOn).HasComment("创建时间");

                entity.Property(e => e.DeleteOn).HasComment("删除时间");

                entity.Property(e => e.Descr).HasComment("描述");

                entity.Property(e => e.Disabled).HasComment("是否可用");

                entity.Property(e => e.District).HasComment("行政区");

                entity.Property(e => e.DistrictJson).HasComment("行政区");

                entity.Property(e => e.JurisdictionJson).HasComment("管辖区域");

                entity.Property(e => e.Email).HasComment("邮箱");

                entity.Property(e => e.Encphone).HasComment("加密手机号");

                entity.Property(e => e.Group).HasComment("用户组(住建,消防,公安)");

                entity.Property(e => e.IdCard).HasComment("身份证号");

                entity.Property(e => e.IsDelete).HasComment("是否删除");

                entity.Property(e => e.Jurisdiction).HasComment("管辖区域");

                entity.Property(e => e.Lang).HasComment("语言偏好");

                entity.Property(e => e.LastLoginIp).HasComment("上次登录IP");

                entity.Property(e => e.LastLoginOn).HasComment("上次登录时间");

                entity.Property(e => e.LockEndTime).HasComment("锁定结束时间");

                entity.Property(e => e.LockStartTime).HasComment("锁定起始时间");

                entity.Property(e => e.LoginCount).HasComment("登录次数");

                entity.Property(e => e.ModifiedIp).HasComment("修改时IP");

                entity.Property(e => e.ModifiedOn).HasComment("修改时间");

                entity.Property(e => e.Nickname).HasComment("用户昵称");

                entity.Property(e => e.Number).HasComment("用户编号");

                entity.Property(e => e.Phone).HasComment("用户手机号");

                entity.Property(e => e.Pwd).HasComment("密码=md5(md5(原始密码)+salt)");

                entity.Property(e => e.RoleType).HasComment("角色类型(超级管理员,市级管理员,区县管理员,街道管理员,社区村级管理员,调查员)");

                entity.Property(e => e.Salt).HasComment("密码盐");

                entity.Property(e => e.SysAdmin).HasComment("是否系统后台管理员");

                entity.Property(e => e.SysAdminBy).HasComment("记录被谁授予了后台管理员");

                entity.Property(e => e.SysAdminIp).HasComment("记录授予了后台管理员IP");

                entity.Property(e => e.SysAdminOn).HasComment("记录被授予了后台管理员时间");

                entity.Property(e => e.Uname).HasComment("用户名");
            });

            modelBuilder.Entity<ZmUserToken>(entity =>
            {
                entity.HasComment("用户登录令牌");

                entity.Property(e => e.CreateOn).HasComment("创建时间");

                entity.Property(e => e.DeleteOn).HasComment("删除时间");

                entity.Property(e => e.ExpireTime).HasComment("过期时间");

                entity.Property(e => e.IsDelete).HasComment("是否删除");

                entity.Property(e => e.LoginIp).HasComment("登录ip");

                entity.Property(e => e.LoginType).HasComment("用户登陆类型，h5,app");

                entity.Property(e => e.ModifiedOn).HasComment("修改时间");

                entity.Property(e => e.Token).HasComment("token");

                entity.Property(e => e.UserId).HasComment("用户id");
            });

            modelBuilder.Entity<ZmVillageFireSafety>(entity =>
            {
                entity.HasComment("村庄消防安全信息表");

                entity.Property(e => e.Id).HasComment("行政村ID");

                entity.Property(e => e.AreaAdminAudit).HasComment("区县管理员审核是否通过");

                entity.Property(e => e.AreaAdminAuditMind).HasComment("区县管理员审核意见");

                entity.Property(e => e.ChargingFacilitiesNumber).HasComment("电动自行车充电设施数量");

                entity.Property(e => e.City).HasComment("市");

                entity.Property(e => e.CityAdminAudit).HasComment("市级管理员审核是否通过");

                entity.Property(e => e.CityAdminAuditMind).HasComment("市级管理员审核意见");

                entity.Property(e => e.CommunityAdminAudit).HasComment("社区村级管理员审核是否通过");

                entity.Property(e => e.Country).HasComment("乡");

                entity.Property(e => e.County).HasComment("县");

                entity.Property(e => e.CreateBy).HasComment("创建者");

                entity.Property(e => e.CreateIp).HasComment("创建时的IP");

                entity.Property(e => e.CreateOn).HasComment("创建时间");

                entity.Property(e => e.DeleteBy).HasComment("删除者");

                entity.Property(e => e.DeleteIp).HasComment("删除时的IP");

                entity.Property(e => e.DeleteOn).HasComment("删除时间");

                entity.Property(e => e.ElectricBicycleNumber).HasComment("村域内的电动自行车数量（辆）");

                entity.Property(e => e.FireBrigadeNumber).HasComment("专职消防队数量");

                entity.Property(e => e.FireFighterNumber).HasComment("专职消防队员数量");

                entity.Property(e => e.FireLanesNumber).HasComment("消防车道数量");

                entity.Property(e => e.FirePoolNumber).HasComment("消防水池数量");

                entity.Property(e => e.FireStationNumber).HasComment("微型消防站数量");

                entity.Property(e => e.FireStationPersonnelNumber).HasComment("微型消防站队员数量");

                entity.Property(e => e.FireStationTruckNumber).HasComment("微型消防站消防车数量");

                entity.Property(e => e.FireTruckNumber).HasComment("水罐消防车数量");

                entity.Property(e => e.FireWaterCraneNumber).HasComment("消防水鹤数量");

                entity.Property(e => e.IsDelete).HasComment("是否删除");

                entity.Property(e => e.ModifiedBy).HasComment("修改者");

                entity.Property(e => e.ModifiedIp).HasComment("修改时的IP");

                entity.Property(e => e.ModifiedOn).HasComment("修改时间");

                entity.Property(e => e.OutdoorFireHydrantNumber).HasComment("室外消火栓数量");

                entity.Property(e => e.Pczt).HasComment("未排查,排查中,已排查");

                entity.Property(e => e.Province).HasComment("省");

                entity.Property(e => e.SelfBuiltHousesAreaNumber).HasComment("生产经营租住村（居）民自建房集中连片区域（个）");

                entity.Property(e => e.SelfBuiltRentalHouseNumber).HasComment("村域内村民自建出租房的建筑数（栋）");

                entity.Property(e => e.StreetAdminAudit).HasComment("街道管理员审核是否通过");

                entity.Property(e => e.StreetAdminAuditMind).HasComment("街道管理员审核意见");

                entity.Property(e => e.Village).HasComment("村");

                entity.Property(e => e.VillageName).HasComment("行政村名称");

                entity.Property(e => e.VillageOwnership).HasComment("行政村归属");

                entity.Property(e => e.FireLayoutPhoto).HasComment("消防布点图照片ID");
            });

            modelBuilder.Entity<ZmVillageFireSafetyCheck>(entity =>
            {
                entity.HasComment("村庄消防安全信息表");

                entity.Property(e => e.Id).HasComment("行政村ID");

                entity.Property(e => e.ChargingFacilitiesNumber).HasComment("电动自行车充电设施数量");

                entity.Property(e => e.CreateBy).HasComment("创建者");

                entity.Property(e => e.CreateIp).HasComment("创建时的IP");

                entity.Property(e => e.CreateOn).HasComment("创建时间");

                entity.Property(e => e.DeleteBy).HasComment("删除者");

                entity.Property(e => e.DeleteIp).HasComment("删除时的IP");

                entity.Property(e => e.DeleteOn).HasComment("删除时间");

                entity.Property(e => e.FireLanesNumber).HasComment("消防车道数量");

                entity.Property(e => e.FireWaterSourcesNumber).HasComment("消防水源设施数量");

                entity.Property(e => e.IsDelete).HasComment("是否删除");

                entity.Property(e => e.ModifiedBy).HasComment("修改者");

                entity.Property(e => e.ModifiedIp).HasComment("修改时的IP");

                entity.Property(e => e.ModifiedOn).HasComment("修改时间");

                entity.Property(e => e.SelfDefenseRescueForces).HasComment("自防自救力量建设情况");
            });

            modelBuilder.Entity<ZmYtBuild>(entity =>
            {
                entity.HasComment("阳台房屋表");


                entity.Property(e => e.SubmitUnit).HasComment("阳台总数");
                entity.Property(e => e.BalconyCount).HasComment("阳台总数");

                entity.Property(e => e.Id).HasComment("主键");

                entity.Property(e => e.DistrictId).HasComment("区id");

                entity.Property(e => e.DistrictName).HasComment("区名称");

                entity.Property(e => e.Upfloors).HasComment("街道id");

                entity.Property(e => e.BuildNo).HasComment("区名称");

                entity.Property(e => e.BuildSite).HasComment("街道id");
                entity.Property(e => e.BuildName).HasComment("区名称");

                entity.Property(e => e.Jcnd).HasComment("街道id");

                entity.Property(e => e.Ownername).HasComment("街道id");
                entity.Property(e => e.Pczt).HasComment("街道id");
                entity.Property(e => e.RoomDesignUseName).HasComment("街道id");

                entity.Property(e => e.Sfljxjgz).HasComment("街道id");

                entity.Property(e => e.StreetId2021).HasComment("街道id");

                entity.Property(e => e.StreetName).HasComment("街道id");

                entity.Property(e => e.CreateOn).HasComment("创建时间");

                entity.Property(e => e.CreateBy).HasComment("创建人");

                entity.Property(e => e.CreateIp).HasComment("创建ip");

                entity.Property(e => e.DeleteBy).HasComment("删除者");

                entity.Property(e => e.DeleteIp).HasComment("删除时的IP");

                entity.Property(e => e.DeleteOn).HasComment("删除时间");
                entity.Property(e => e.IsDelete).HasComment("是否删除");

                entity.Property(e => e.ModifiedBy).HasComment("修改者");

                entity.Property(e => e.ModifiedIp).HasComment("修改时的IP");

                entity.Property(e => e.ModifiedOn).HasComment("修改时间");

            });

            modelBuilder.Entity<ZmYtPhoto>(entity =>
            {
                entity.HasComment("照片信息表");

                entity.Property(e => e.Id).HasComment("主键");

                entity.Property(e => e.IsDelete).HasComment("区id");

                entity.Property(e => e.ModifiedBy).HasComment("区名称");

                entity.Property(e => e.CreateBy).HasComment("街道id");

                entity.Property(e => e.CreateOn).HasComment("区名称");

                entity.Property(e => e.CreateIp).HasComment("街道id");
                entity.Property(e => e.ModifiedOn).HasComment("区名称");

                entity.Property(e => e.ModifiedBy).HasComment("街道id");

                entity.Property(e => e.ModifiedIp).HasComment("街道id");
                entity.Property(e => e.Photo).HasComment("街道id");
                entity.Property(e => e.RoomNo).HasComment("街道id");

                entity.Property(e => e.Type).HasComment("街道id");

                entity.Property(e => e.BuildNo).HasComment("街道id");

            });

            modelBuilder.Entity<ZmYtFrom>(entity =>
            {
                entity.HasComment("阳台信息表");
                entity.Property(e => e.Msg).HasComment("检查人");
                entity.Property(e => e.CheckBy).HasComment("检查人");
                entity.Property(e => e.Id).HasComment("主键");
                entity.Property(e => e.IsDelete).HasComment("区id");
                entity.Property(e => e.ModifiedBy).HasComment("区名称");
                entity.Property(e => e.CreateBy).HasComment("街道id");
                entity.Property(e => e.CreateOn).HasComment("区名称");
                entity.Property(e => e.CreateIp).HasComment("街道id");
                entity.Property(e => e.ModifiedOn).HasComment("区名称");
                entity.Property(e => e.ModifiedBy).HasComment("街道id");
                entity.Property(e => e.ModifiedIp).HasComment("街道id");
                entity.Property(e => e.RoomNo).HasComment("街道id");
                entity.Property(e => e.BuildingLocate).HasComment("街道id");
                entity.Property(e => e.CantileverPlateCraze).HasComment("街道id");
                entity.Property(e => e.CantileverPlateCrazeMsg).HasComment("街道id");
                entity.Property(e => e.BalconyBedHedgehopping).HasComment("街道id");
                entity.Property(e => e.BalconyBedHedgehoppingMsg).HasComment("街道id");
                entity.Property(e => e.BalconyBlockPlugging).HasComment("街道id");
                entity.Property(e => e.BalconyBlockPluggingMsg).HasComment("街道id");
                entity.Property(e => e.BalconyCount).HasComment("街道id");
                entity.Property(e => e.BalconyExternalFlashMsg).HasComment("街道id");
                entity.Property(e => e.BalconyParallelexteriorwallFissure).HasComment("街道id");
                entity.Property(e => e.BalconyParallelexteriorwallFissureMsg).HasComment("街道id");
                entity.Property(e => e.BalconyRemould).HasComment("街道id");
                entity.Property(e => e.BalconyRemouldMsg).HasComment("街道id");
                entity.Property(e => e.BalconySkxzFissure).HasComment("街道id");
                entity.Property(e => e.BalconySkxzFissureMsg).HasComment("街道id");
                entity.Property(e => e.BalconyVennerDamage).HasComment("街道id");
                entity.Property(e => e.BalconyVennerDamageMsg).HasComment("街道id");
                entity.Property(e => e.ClurrentBalcony).HasComment("街道id");
                entity.Property(e => e.SubDistrict).HasComment("街道id");
                entity.Property(e => e.WallUnderWindowMsg).HasComment("街道id");
                entity.Property(e => e.WallUnderWindow).HasComment("街道id");
                entity.Property(e => e.PropertyUnit).HasComment("街道id");
                entity.Property(e => e.NumYhwtYt).HasComment("街道id");
                entity.Property(e => e.BuildNo).HasComment("街道id");
                entity.Property(e => e.RoomNum).HasComment("街道id");
                

            });
            OnModelCreatingPartial(modelBuilder);
        }

        partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
    }
}
